{% extends "base.html" %}
{% block title %}{{ portfolio.name|truncate:12 }}{% endblock %}

{% block body %}
Portfolio: {{ portfolio.name }}

Transactions:
<table>
<tr>
  <th>Type</th>
  <th>Symbol</th>
  <th>Date</th>
  <th>Shares</th>
  <th>Price</th>
  <th>Commission</th>
  <th>Total</th>
</tr>
{% for t in transactions %}
<tr>
  <td>{{ t.verboseType }}</td>
  <td>{{ t.security.symbol }}</td>
  <td>{{ t.date|date:"m d y" }}</td>
  <td>{{ t.shares }}</td>
  <td>{{ t.price }}</td>
  <td>{{ t.commission }}</td>
  <td>{{ t.total }}</td>
</tr>
{% empty %}
<tr>
  <td colspan="7">No transactions yet</td>
</tr>
{% endfor %}
</table>
{% endblock %}


